package com.lrm.biz;

import com.lrm.pojo.Blog;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

/**
 * @Author: 王金海
 * @Description:
 * @Date: Created by Administrator on 2017/12/1.
 * @Modified By:
 */
public interface IBlogBiz {

    Blog getOne(Long id);

    Page<Blog> listBlog(Pageable pageable, String title, Long typeid, boolean recommend);

    Page<Blog> listBlog(Pageable pageable);

    Page<Blog> listBlog(Pageable pageable,Long tagId);

    Page<Blog> blogSenrchList(String senrch,Pageable pageable);

    List<Blog> blogrecommendList(Pageable pageable);

    Map<String,List<Blog>> archiveBlog();

    Blog saveBlog(Blog blog);

    Blog updataBlog(Long id,Blog blog);

    Boolean delBlog(Long id);

    Blog findByIdmk(Long id);

}
